package part4;

import java.io.Serializable;

public class DeepCloneableTarget implements Serializable, Cloneable {
    public String name;

    public DeepCloneableTarget(String name) {
        this.name = name;
    }

    @Override
    public DeepCloneableTarget clone() {
        try {
            return (DeepCloneableTarget) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
